package com.demo.boss.common.enums;

/**
 * 错误码
 */
public enum SysCode {
    OK(1000,"成功"),
    DEFAULT_ERROR(1001,"请稍后重试"),
    REQUEST_PARAM_ERROR(1002,"请求参数异常"),
    OPERATOR_LOGIN_NAME_ERROR(2000,"登录用户无效"),
    OPERATOR_DISABLE_ERROR(2001,"用户不可用"),
    OPERATOR_NAME_PWD_ERROR(2002,"登录名称或密码错误"),


    USER_LOGIN_NAME_EXISTS_ERROR(3001,"商户登录已使用，请更换其他"),
    PAYMENT_PRODUCT_CODE_EXISTS_ERROR(4001,"产品编号已使用，请更换其他"),
    PAYMENT_PRODUCT_NAME_EXISTS_ERROR(4002,"产品名称已使用，请更换其他"),
    PAYMENT_PRODUCT_WAY_EXISTS_ERROR(4003,"产品名称支付方式和支付类型重复，请更换其他"),
    PAYMENT_USER_PRODUCT_CONFIG_EXISTS_ERROR(4004,"商家已配置了此支付产品")
    ;
    private Integer code;
    private String text;

    SysCode(Integer code, String text) {
        this.code = code;
        this.text = text;
    }

    public Integer getCode() {
        return code;
    }

    public String getText() {
        return text;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setText(String text) {
        this.text = text;
    }
}
